/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Widgets;
import java.awt.* ;
import java.awt.event.* ;
import javax.swing.* ;
/**
 *
 * @author Mdbrown
 */
public class resumeB extends JButton  {

    private Thread runningThread = null ;

    public resumeB(String desc, Thread t){
        this.setName(desc);
        this.runningThread = t ;

    }//resumbeB()


     public void resumeNow(){
        if(this.runningThread != null ){
            runningThread.suspend() ;
        }//end of if() conditionally statement
     }//end of resumeNow() method

     public void actionPerformed(ActionEvent e){

         resumeNow() ;

    }//end of actionPerformed(ActionEvent e) method

}// end class resumeB
